<!DOCTYPE html>
<html lang="en" style="height:100%;">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="expires" content="0"> 

  <title>红包雨</title>
  <style>
  .cssload-loader {
    width: 97px;
    height: 19px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
      -o-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      -webkit-transform: translate(-50%, -50%);
      -moz-transform: translate(-50%, -50%);
  }
  .cssload-loader > div {
    content: " ";
    width: 19px;
    height: 19px;
    background: rgb(33,150,243);
    border-radius: 100%;
    position: absolute;
    animation: cssload-shift 2.3s linear infinite;
      -o-animation: cssload-shift 2.3s linear infinite;
      -ms-animation: cssload-shift 2.3s linear infinite;
      -webkit-animation: cssload-shift 2.3s linear infinite;
      -moz-animation: cssload-shift 2.3s linear infinite;
  }
  .cssload-loader > div:nth-of-type(1) {
    animation-delay: -0.46s;
      -o-animation-delay: -0.46s;
      -ms-animation-delay: -0.46s;
      -webkit-animation-delay: -0.46s;
      -moz-animation-delay: -0.46s;
  }
  .cssload-loader > div:nth-of-type(2) {
    animation-delay: -0.92s;
      -o-animation-delay: -0.92s;
      -ms-animation-delay: -0.92s;
      -webkit-animation-delay: -0.92s;
      -moz-animation-delay: -0.92s;
  }
  .cssload-loader > div:nth-of-type(3) {
    animation-delay: -1.38s;
      -o-animation-delay: -1.38s;
      -ms-animation-delay: -1.38s;
      -webkit-animation-delay: -1.38s;
      -moz-animation-delay: -1.38s;
  }
  .cssload-loader > div:nth-of-type(4) {
    animation-delay: -1.84s;
      -o-animation-delay: -1.84s;
      -ms-animation-delay: -1.84s;
      -webkit-animation-delay: -1.84s;
      -moz-animation-delay: -1.84s;
  }



  @keyframes cssload-shift {
    0% {
      left: -58px;
      opacity: 0;
      background-color: rgb(255,255,0);
    }
    10% {
      left: 0;
      opacity: 1;
    }
    90% {
      left: 97px;
      opacity: 1;
    }
    100% {
      left: 156px;
      background-color: rgb(255,0,0);
      opacity: 0;
    }
  }

  @-o-keyframes cssload-shift {
    0% {
      left: -58px;
      opacity: 0;
      background-color: rgb(255,255,0);
    }
    10% {
      left: 0;
      opacity: 1;
    }
    90% {
      left: 97px;
      opacity: 1;
    }
    100% {
      left: 156px;
      background-color: rgb(255,0,0);
      opacity: 0;
    }
  }

  @-ms-keyframes cssload-shift {
    0% {
      left: -58px;
      opacity: 0;
      background-color: rgb(255,255,0);
    }
    10% {
      left: 0;
      opacity: 1;
    }
    90% {
      left: 97px;
      opacity: 1;
    }
    100% {
      left: 156px;
      background-color: rgb(255,0,0);
      opacity: 0;
    }
  }

  @-webkit-keyframes cssload-shift {
    0% {
      left: -58px;
      opacity: 0;
      background-color: rgb(255,255,0);
    }
    10% {
      left: 0;
      opacity: 1;
    }
    90% {
      left: 97px;
      opacity: 1;
    }
    100% {
      left: 156px;
      background-color: rgb(255,0,0);
      opacity: 0;
    }
  }

  @-moz-keyframes cssload-shift {
    0% {
      left: -58px;
      opacity: 0;
      background-color: rgb(255,255,0);
    }
    10% {
      left: 0;
      opacity: 1;
    }
    90% {
      left: 97px;
      opacity: 1;
    }
    100% {
      left: 156px;
      background-color: rgb(255,0,0);
      opacity: 0;
    }
  }
  </style>
 
  <!-- <script type="text/javascript" src="//statres.quickapp.cn/quickapp/js/routerinline.min.js"></script> -->
</head>
<body style="height:100%;">
  <div style="display: flex;height:100%;justify-content: center;align-items: center;">
    <a href="https://hapjs.org/app/com.ym.clean/Minisite">https的方法点击跳转快应用</a>

    <div class="cssload-loader">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>
  </div>
  <!-- <script src="../lib/index.js"></script> -->

  <script>


!function(){"use strict";var e=navigator.userAgent.toLowerCase();function a(e,n){for(var t in n=n||{})e[t]=n[t];return e}function l(e,n,t){var o=document.createElement("iframe"),e="hwfastapp://"+e;n&&(e=e+"/"+n),t&&0<Object.keys(t).length&&(e=e+"?"+(t=Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&"))),o.src=e,document.body.appendChild(o),o.style.display="none"}var n;var t=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(t)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var r,c,u,d=[],f=0;f<256;++f)d.push((f+256).toString(16).substr(1));function s(e,n){n=1<arguments.length&&void 0!==n?n:0,e=(d[e[n+0]]+d[e[n+1]]+d[e[n+2]]+d[e[n+3]]+"-"+d[e[n+4]]+d[e[n+5]]+"-"+d[e[n+6]]+d[e[n+7]]+"-"+d[e[n+8]]+d[e[n+9]]+"-"+d[e[n+10]]+d[e[n+11]]+d[e[n+12]]+d[e[n+13]]+d[e[n+14]]+d[e[n+15]]).toLowerCase();if("string"!=typeof(n=e)||!o.test(n))throw TypeError("Stringified UUID is invalid");return e}function p(e){e=+(e.match(/.*Android (\d+).*/i)||[])[1];return!isNaN(e)&&e<10}function m(e){e=+(e.match(/.*Android (\d+).*/i)||[])[1];return!isNaN(e)&&10<=e}function h(e){return 1<(e.match(/.*(iPhone|iPad|Mac OS).*/i)||[]).length}function v(e){return 1<(e.match(/.*(xiaomi|redmi|mix|mi\s).*/i)||[]).length}function g(e){return 0<(e.match(/(?:vivo|iqoo|v\d{4}(a|t|ba|ca|bt|ct|et|ea|ga) build)/i)||[]).length}function y(e,n,t,o){var a=e,i="";n&&(a=a+"?i="+n),t&&(a=a+"&p="+t),a+="&random="+Math.random(),!function(e){if(!e)return 1;var n=void 0;for(n in e)return;return 1}(o)?i=Object.keys(o).map(function(e){return e+"="+encodeURIComponent(o[e])}).join("&"):-1<(e=window.location.search).indexOf("?")&&(i=e.substr(1));t=navigator.userAgent;(g(t=t.toLowerCase())||v(t))&&(t=(e=function(){var n="",t=!0;try{n=top.location.href}catch(e){try{var o=window.location.ancestorOrigins;n=o[o.length-1]}catch(e){n=document.referrer,t=!1}}return{url:n,isTopUrl:t}}()).url,e=e.isTopUrl,i=(i=i+"&url_origin_top="+encodeURIComponent(t))+"&url_is_top="+encodeURIComponent(e)),""!==i&&(a=a+"&a="+encodeURIComponent(i));i=document.createElement("img");i.src=a,i.style.width="1px",i.style.height="1px",i.style.display="none",document.body.appendChild(i)}function b(e,n){var t,o=document.createElement("img");o.style.width="1px",o.style.height="1px",o.style.display="none",e+="/"+1e20*Math.random(),o.src=e,document.body.appendChild(o),n=a({availableTimeout:2e3},n),o.complete?n.available.call(null,!0):(o.onload=function(){clearTimeout(t),n.available.call(null,!0)},t=setTimeout(function(){n.available.call(null,!1)},n.availableTimeout))}function w(e,n,t){var o=navigator.userAgent;v(o)&&(t.__xiaomi_session__=function(e,n,t){var o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n){t=t||0;for(var a=0;a<16;++a)n[t+a]=o[a];return n}return s(o)}()),h(o)?console.debug("Detect device: Apple device;"):p(o)?(console.debug("Detect device: Below Android Q;"),y("http://thefatherofsalmon.com",e,n,t),v(o)&&y("http://v2.thefatherofsalmon.com",e,n,t)):(m(o)?(console.debug("Detect device: Greater and equal than Android Q;"),g(o)||y("http://thefatherofsalmon.com",e,n,t)):(console.debug("Detect device: None match;"),y("http://thefatherofsalmon.com",e,n,t)),y("http://v2.thefatherofsalmon.com",e,n,t))}c=(r=void 0===r?e:r).indexOf("android"),u=r.indexOf("huawei"),r=r.indexOf("honor"),0<=c&&(0<=u||0<=r)?(window.appRouter=window.appRouterHw=function(e,n,t){var o,a,i,r,c,u;!function(){var e=navigator.userAgent;if(e){if(0<=(e=e.toLowerCase()).indexOf("huaweibrowser"))return;var n=e.indexOf("android"),t=e.indexOf("huawei");if(t<0&&(t=e.indexOf("honor")),0<=n&&0<=t){t=e.slice(n+8,n+9);if(8<=t)return 1;if((t=e.slice(n+8,n+10))&&t.indexOf(";")<0&&10<=t)return 1}}}()?l(e,n,t):(o=e,a=n,i=t=t||{},r="",c=(c="http://fastappjump-drcn.hispace.hicloud.com/fastapprouter/")+(new Date).getTime()+"/",o&&(c=c+"?i="+o),(a=a&&0===a.indexOf("/")?1===a.length?"":a.substr(1):a)&&(c=c+"&p="+a),function(){if(!i)return 1;var e=void 0;for(e in i)return;return 1}()?-1<(a=window.location.search).indexOf("?")&&(r=a.substr(1)):r=Object.keys(i).map(function(e){return e+"="+encodeURIComponent(i[e])}).join("&"),""!==r&&(c=c+"&a="+encodeURIComponent(r)),(r=document.createElement("img")).src=c,r.style.width="1px",r.style.height="1px",r.style.display="none",document.body.appendChild(r),function(){if(e=navigator.userAgent){var e,n=(e=e.toLowerCase()).indexOf("android"),t=e.indexOf("huawei");if(t<0&&(t=e.indexOf("honor")),0<=n&&0<=t){t=e.slice(n+8,n+9);if(9<=t)return;if((t=e.slice(n+8,n+10))&&t.indexOf(";")<0&&10<=t)return}}return 1}()&&(u=new Date,setTimeout(function(){new Date-u<=830&&l(e,n,t)},800)))},window.channelReady=function(e){var n={available:new Function};"function"==typeof e?n.available=e:"object"==typeof e&&a(n,e);var t=!1,o=n.available;n.available=function(){t||(t=!0,o.apply(null,arguments))},n.available.call(null,!0)}):(window.appRouter=function(e,n,t,o){return t=t||{},o&&(t.__PROMPT__=1,t.__NAME__=o),w(e,n,t)},window.installShortcut=function(e,n){return w("command","",{type:"shortcut",package:e,name:n})},window.channelReady=function(e){var n={available:new Function};"function"==typeof e?n.available=e:"object"==typeof e&&a(n,e);var t=!1,o=n.available;n.available=function(){t||(t=!0,o.apply(null,arguments))},e=n,h(n=navigator.userAgent)?(console.debug("Detect device: Apple device;"),e.available.call(null,!1)):p(n)?(console.debug("Detect device: Below Android Q;"),b("http://thefatherofsalmon.com/images",e)):(m(n)?(console.debug("Detect device: Greater and equal than Android Q;"),g(n)||b("http://thefatherofsalmon.com/images",e)):(console.debug("Detect device: None match;"),b("http://thefatherofsalmon.com/images",e)),b("http://v2.thefatherofsalmon.com/images",e))})}();
window.isAutoJump=true;

function getStrByLength(size) {
  size = (size || 32);
  var s = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';
  var len = s.length;
  var res = '';
  for (i = 0; (i < size); i++) {
      res += s.charAt(Math.floor((Math.random() * len)));
  }
  return res;
}

var OPPO_MOBILE_UA = ['PAAM00', 'PAAT00', 'PACM00', 'PACT00', 'PADM00', 'PADT00', 'PAFM00', 'PAFT00', 'PAHM00', 'PAHM00', 'PAFT10', 'PBAT00', 'PBAM00', 'PBAM00', 'PBBM30', 'PBBT30', 'PBEM00', 'PBET00', 'PBBM00', 'PBBT00', 'PBCM10', 'PBCT10', 'PBCM30', 'PBDM00', 'PBDT00', 'PBFM00', 'PBFT00', 'PCDM00', 'PCDT00', 'PCAM00', 'PCAT00', 'PCDM10', 'PCDM10', 'PCGM00', 'PCGT00', 'PCCM00', 'PCCT00', 'PCCT30', 'PCCT40', 'PCAM10', 'PCAT10', 'PCEM00', 'PCET00', 'PCKM00', 'PCKT00', 'PCHM00', 'PCHT00', 'PCHM10', 'PCHT10', 'PCHM30', 'PCHT30', 'PCLM10', 'PCNM00', 'PCKM00', 'PCKM00', 'RMX1901', 'RMX1851', 'RMX1971', 'RMX1901', 'RMX1851', 'RMX1901', 'RMX1991', 'RMX1971', 'RMX1931'],
  landUrl = '', 
  isLeave = false, 
  QUICKAPP_CHANNEL_REPORT_KEY = '__E_source__', 

  mobi = {
      'deepLinkUrl': '',
      'isSupport': true,
      'params': {},
      'pkg': 'com.ym.clean',
      'quick_uri': '',
      'path': 'Minisite',
      'ua': '',
      'startTime': 0,
      'moreTimer': null,
      'initBootParams': function () {
          this.ua = window.navigator.userAgent;
          this.appleDeviceFlag = false;
      },
      'getQueryVariable': function (name) {
          var st = window.location.search.substring(1).split('&');
          for (var  i = 0; (i < st.length); i++) {
              var ele = st[i]['split']('=');
              if (ele[0] === name)
                  return decodeURIComponent( ele[1]);
          }
          return '';
      },
      'getQueryObject': function () {
          var type = 't';
          for (var ks = window.location.search.substring(1).split('&'), data = {}, rmks = false, index = 0; (index < ks.length); index++) {
              var skey = ks[index]['split']('='), ele = skey[0];
              if (ele != 't'){
                  data[ele] = decodeURIComponent( skey[1]);
              }
              (ele === QUICKAPP_CHANNEL_REPORT_KEY) && (rmks = true);
          }
          return rmks || (data[QUICKAPP_CHANNEL_REPORT_KEY] = 21), data;
      },
      'isAppleDevice': function () {
          var _ua = this.ua;
          /.*(iPhone|iPad|iPod|Mac OS|Samsung).*/i.test(_ua) ? (this.appleDeviceFlag = true, console.log('is Apple Device: ', true)) : console.log('is Apple Device: ', false);
      },
      'isVivoDevice': function (ua) {
          return !!/(?:vivo|iqoo|v\d{4}(a|t|ba|ca|bt|ct|et|ea|ga) build)/i.test(ua) && (console.log('vivo device!!!'), true);
      },
      'isHuaweiDevice': function (ua) {
          return !!/.*(huawei|honor\s).*/i.test(ua) && (console.log('huawei device!!!'), true);
      },
      'isMiDevice': function (ua) {
          return !!/.*(xiaomi|redmi|mix|mi\s).*/i.test(ua) && (console.log('mi device!!!'), true);
      },
      'extraCheckSupportStatus': function () {
          var ua = this.ua, isVivoDevice = this.isVivoDevice, isMiDevice = this.isMiDevice;
          return !(!isVivoDevice(ua) && !isMiDevice(ua)) || OPPO_MOBILE_UA.some(function (item) {
              return ua.includes(item);
          });
      },
      'isSamsung': function () {
          var ua = this.ua;
          if (/.*(Samsung).*/i.test(ua)) {
              return true;
          }
      },
      'isIos': function () {

          var ua = this.ua.toLowerCase();
          return (1 < (ua.match(/.*(iphone|ipad|mac os).*/i) || []).length);
      },
      'isOppo': function () {
          if (/(oppo|heytap)/g.test(this.ua.toLowerCase())) {
              return true;
          }
          var remark = false;
          var list = ['oppo', 'heytap', 'pacm', 'padt', 'padm', 'pafm', 'pbam', 'pbcm', 'pbem', 'pccm', 'pbfm', 'pcpm', 'pcam', 'pcdm', 'pcem', 'pcgm', 'pdet', 'pbbt', 'pchm', 'pckm', 'pcat', 'pckm', 'pclm', 'pcnm', 'pcrt', 'pdkt', 'pcrm', 'pdbm', 'pdyt', 'pbat', 'pdcm', 'pbdm', 'pdhm', 'pbft', 'pdnt', 'pcdt', 'pcht', 'pdat', 'pbdt', 'pbct', 'pdvm', 'pdpt', 'pcct', 'pbet', 'peat', 'pdpm', 'pcet', 'pdym', 'peam', 'pdnm', 'pdkm', 'rmx2051', 'gm1901', 'roselia', 'rmx1971', 'paam00', 'rmx1851', 'rmx1901', 'rmx1931', 'pdam', 'pdem', 'pbbm', 'opm', '1107', '3007', 'a31', 'a31c', 'a31t', 'a51', 'cph1607', 'cph1717', 'cph1723', 'cph1801', 'n1t', 'n5117', 'n5207', 'n5209', 'r2017', 'r6007', 'r7plus', 'r7plusm', 'r8107', 'r8200', 'r8205', 'r8207', 'r831s', 'r833t', 'x9000', 'x9007', 'x909'];
          for (var i = 0; (i < list.length); i++) {
              if ((this.ua.indexOf(list[i]) > -1)) {
                  remark = true;
                  break;
              }
          }
          return remark;
      },
      'getBrand': function () {
          if (this.isHuaweiDevice(this.ua.toLowerCase())) {
              return 'huawei';
          } else if (this.isOppo()) {
              return 'oppo';
          } else if (this.isVivoDevice(this.ua.toLowerCase())) {
              return 'vivo';
          } else if (this.isMiDevice(this.ua.toLowerCase())) {
              return 'xiaomi';
          } else if (this.isIos()) {
              return 'iphone';
          } else if ((navigator.platform.indexOf('Win') > -1)) {
              return 'win';
          }
          return '';
      },
      'reportEvent': function (a, item, eopt) {
      },
      'getAndroidVersion': function () {
          var ua = this.ua;
          var versions = +(ua.match(/.*android (\d+).*/i) || [])[1];
          if (isNaN( versions)) {
              versions = '';
          }
          return versions;
      },
      'addEvent': function () {

          var re = ('hidden' in document) ? 'hidden' : ('webkitHidden' in document) ? 'webkitHidden' : 'mozHidden' in document ? 'mozHidden' : null;
          var hq = re.replace(/hidden/i, 'visibilitychange');
          var call = function () {
              if (document[re]) {
                  isLeave = true;
              }
          };
          document.addEventListener(hq, call);
      },
      'openByDeepLink': function () {
          if (!this.deepLinkUrl) {
              var content = '';
              content = 'hap://app/' + this.pkg + '/' + this.path + this.quick_uri;
              this.deepLinkUrl = content, console.log('deep link url: '['concat'](content));
          }
          content = document.createElement('a');

          content.setAttribute('href', this.deepLinkUrl), content.style.display = 'none', content.id = 'tempA', document.body.appendChild(content), content.click();

          content = document.querySelector('#tempA');

          document.body.removeChild(content);

      },
      'delayJump': function () {

          setTimeout( function () {
            mobi.openLandingPage();
          }, 6000);
      },
      'getCurrentDomain': function () {

          return ((window.location.protocol + '//') + window.location.host);
      },
      'moreTimeLandPage': function () {
          this.moreTimer = setTimeout( function () {
              mobi.openLandingPage();
          }, 6000);
      },
      'openLandingPage': function () {
        //   setTimeout( function () {
        //       window.location.href = landUrl;
        //   }, 0x1f4);
      },
      'createScript': function (url, node) {
          var script = document.createElement('script');
          script.type = 'text/javascript';
          script.src = url;

          var at = {};
          at.async = '';
          script.attr = at;

          this.appendScript(node, script, null);

      },
      'appendScript': function (callback, node, sid) {

          node.onload = node.onerror = node.onbeforeload = function () {
              callback();

          };
          if (sid) {
              document.getElementById(sid).appendChild(node);

          } else {
              document.getElementsByTagName('head')[0]['appendChild'](node);
          }
      },
      'openApp': function () {
          alert('跳转快应用')
          console.log('跳转快应用');
          var self = this, _ua = this.ua, _appleDeviceFlag = this.appleDeviceFlag,
              _pkg = this.pkg, _path = this.path || '', rmk = false;
          o = this.params;
          this.startTime = new Date().getTime();
          if (_appleDeviceFlag) {
             
              mobi.isSupport = false;
              this.openLandingPage();
          } else {
            //   if (_ua.includes('baiduboxapp') && !this.isVivoDevice(_ua)) {
                 

            //       mobi.isSupport = false;

            //       this.moreTimeLandPage();

            //       rmk = true;

            //       console.log(1);

            //   } else {
            //       if (/(NewsArticle|NewsLite|aweme|TTWebview|UCBrowser|Quark)/i.test(_ua) && !this.isHuaweiDevice(_ua)) {

            //           mobi.isSupport = false;

            //           this.moreTimeLandPage();

            //           rmk = true;

            //           console.log(2);

            //       } else {
                alert(window.channelReady)
                      if (window.channelReady) {
                       
                        channelReady(function (_0x2be8bb) {
                            alert(_0x2be8bb)
                            appRouter(_pkg, _path, o, 0)
                            mobi.openByDeepLink();
                            // alert(_0x2be8bb)
                            // alert(self.extraCheckSupportStatus())
                            // if(_0x2be8bb || self.extraCheckSupportStatus()){
                            //     mobi.delayJump(), 
                            //     mobi.isSupport = true,
                            //     appRouter( _pkg, _path, o, false)
                            // }else{
                            //     mobi.isSupport = false, 
                            //     appRouter(_pkg, _path, o, 0), 
                            //     mobi.openLandingPage()
                            // }
                           
                        });
                      } else {
                          mobi.openByDeepLink();
                      }
                //   }
            //   }
          }
          setTimeout( function () {
              if (rmk) {
                  appRouter( _pkg, _path, o, 0);
                  mobi.openLandingPage();
              }
              mobi.openByDeepLink();
          }, 150);
      },
      'init': function () {
          this.initBootParams(), 
          this.isAppleDevice();
          if (window.isAutoJump && !this.getQueryVariable('debug')) {
              this.openApp();
            //   mobi.moreTimeLandPage();
          }
      },
      'setParams': function (e) {
          this.params = this.getQueryObject();
          this.quick_uri = location.search;
      }
  };
window.onload = function () {
  landUrl = `https://i.iwanbei.cn/activities?appKey=81d3b415f3cb47c4a70216c661aa4e0c&appEntrance=1&business=money`;
  setTimeout( function () {
      mobi.setParams();
      mobi.init();
  }, 200);
};

  </script>
</body>
</html>